import fetch from 'common/src/utils/fetch'
import UTILS from "common/src/utils/utils";


function getScopeTypeList(data){
    return fetch({
        url:'/api/scoremanagementservice/scoreSettingController/queryScoreRecord?coretypeCode='+data+'&projectId=1',
        method:'get'
    })
}

function submitTableList(id){
    return fetch({
        url:`/api/scoremanagementservice/paperAnalysisController/paperAnalysisSubmitGet?teachingClassId=${id}`,
        method:'get'
    })
}
function submit(data){//提交
    return fetch({
        url:'/api/scoremanagementservice/paperAnalysisController/paperAnalysisSubmitSet',
        data,
        method:'post'
    })
}
function viewPaperAnalysisInfo(data){
   return fetch ({
       url:`/api/scoremanagementservice/paperAnalysisController/viewPaperAnalysisInfo?teachingClassId=${data.teachingClassId}&calendarId=${data.calendarId}`,
       method:'get'
   })
}
export default{
   
    getScopeTypeList,
    submitTableList,
    submit,
    viewPaperAnalysisInfo     
}